<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<h:form id="chooseIconForm" enctype="multipart/form-data">
		<p:dialog header="Choose icons" widgetVar="chooseIconDlg"
			resizable="false" id="chooseIconDialog" showEffect="explode"
			hideEffect="clip" modal="true" style="width:600px;height:600px">

			<h:panelGrid columns="1">
				<h:panelGrid columns="2">
					<h:outputText value="16.png"></h:outputText>
					<p:fileUpload value="#{productModel.current.icon16}" mode="simple"></p:fileUpload>
					<h:outputText value="32.png"></h:outputText>
					<p:fileUpload value="#{productModel.current.icon32}" mode="simple"></p:fileUpload>
					<h:outputText value="64.png"></h:outputText>
					<p:fileUpload value="#{productModel.current.icon64}" mode="simple"></p:fileUpload>
					<h:outputText value="128.png"></h:outputText>
					<p:fileUpload value="#{productModel.current.icon128}" mode="simple"></p:fileUpload>
				</h:panelGrid>
				<h:panelGrid columns="2">
					<p:commandButton value="OK" ajax="false"
						onclick="chooseIconDlg.hide()"
						style="float:left"
						actionListener="#{pictureController.currentUploadedFileChange}" />
					<p:commandButton value="Cancel" type="button"
						onclick="chooseIconDlg.hide()" style="float:right" />
				</h:panelGrid>
			</h:panelGrid>

		</p:dialog>
	</h:form>
</ui:composition>

</html>